package org.example.admin.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.example.admin.common.convention.result.Result;
import org.example.admin.service.RecycleBinShortLinkRemoteService;
import org.example.admin.remote.dto.req.ShortLinkRecycleBinPageReqDTO;
import org.example.admin.remote.dto.resp.ShortLinkPageRespDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author weibin
 * @since 2025/10/14 21:29
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/remote/recycle-bin")
public class RecycleBinShortLinkController {

    private final RecycleBinShortLinkRemoteService recycleBinShortLinkRemoteService;

    @PostMapping("/pageShortLink")
    public Result<IPage<ShortLinkPageRespDTO>> pageRecycleBinShortLink(@RequestBody ShortLinkRecycleBinPageReqDTO requestParam) {
        return recycleBinShortLinkRemoteService.pageRecycleBinShortLink(requestParam);
    }

}
